package top.xcxdl.rural.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import top.xcxdl.rural.entity.BackAdmin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Ding
 * @since 2022-01-27
 */
@Mapper
public interface BackAdminMapper extends BaseMapper<BackAdmin> {

    /**
     * 查询管理员列表
     * @param title 查询key
     * @return 管理员列表
     */
    List<BackAdmin> getList(@Param("title") String title);

    BackAdmin getAdminUserById(Integer id);
}
